//
//  NSString+Extension.m
//  weidianguanjia
//
//  Created by xieyingze on 16/6/12.
//  Copyright © 2016年 xieyingze. All rights reserved.
//

#import "NSString+Extension.h"

@implementation NSString (Extension)

- (BOOL)containsString:(NSString *)str {
    if (!self) return NO;//self为空
    return [self rangeOfString:str].location != NSNotFound;
}

@end
